From: Olaf Hering Date: Fri, 2 Oct 2015 09:50:45 +0000 (+0000) Subject: tools/thermal: tmon: use pkg-config also for CFLAGS X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~3418^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=809b6ecb53e35654d988f8f8f263a51ac6d10003;p=linux-4.9.git tools/thermal: tmon: use pkg-config also for CFLAGS The header might be in /usr/include/ncursesw, which is not part of the standard include path. This fixes compile on openSUSE. Signed-off-by: Olaf Hering Signed-off-by: Zhang Rui --- diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index 2e83dd3655a2..3a961e998281 100644 --- a/tools/thermal/tmon/Makefile +++ b/tools/thermal/tmon/Makefile @@ -22,6 +22,9 @@ TMON_LIBS += $(shell pkg-config --libs $(STATIC) panelw ncursesw 2> /dev/null || pkg-config --libs $(STATIC) panel ncurses 2> /dev/null || \ echo -lpanel -lncurses) +CFLAGS += $(shell pkg-config --cflags $(STATIC) panelw ncursesw 2> /dev/null || \ + pkg-config --cflags $(STATIC) panel ncurses 2> /dev/null) + OBJS = tmon.o tui.o sysfs.o pid.o OBJS +=